<?php
/**
 * This file is part of webman.
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the MIT-LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @author    walkor<walkor@workerman.net>
 * @copyright walkor<walkor@workerman.net>
 * @link      http://www.workerman.net/
 * @license   http://www.opensource.org/licenses/mit-license.php MIT License
 */

use Webman\Route;

$app = config('app.app_map.admin','admin');

Route::post('/'.$app.'/Sys.Base/createMenu', 'app\admin\controller\Sys\BaseController@createMenu')->middleware([
    app\admin\controller\Sys\middleware\createTable::class,
]);
Route::post('/'.$app.'/Sys.Base/updateMenu', 'app\admin\controller\Sys\BaseController@updateMenu')->middleware([
    app\admin\controller\Sys\middleware\updateTable::class,
]);
Route::post('/'.$app.'/Sys.Base/deleteMenu', 'app\admin\controller\Sys\BaseController@deleteMenu')->middleware([
    app\admin\controller\Sys\middleware\deleteTable::class,
]);
Route::post('/'.$app.'/Sys.Base/createField', 'app\admin\controller\Sys\BaseController@createField')->middleware([
    app\admin\controller\Sys\middleware\createField::class,
]);
Route::post('/'.$app.'/Sys.Base/updateField', 'app\admin\controller\Sys\BaseController@updateField')->middleware([
    app\admin\controller\Sys\middleware\updateField::class,
]);
Route::post('/'.$app.'/Sys.Base/deleteField', 'app\admin\controller\Sys\BaseController@deleteField')->middleware([
    app\admin\controller\Sys\middleware\deleteField::class,
]);
Route::post('/'.$app.'/Sys.Base/deleteApplication', 'app\admin\controller\Sys\BaseController@deleteApplication')->middleware([
    app\admin\controller\Sys\middleware\deleteApplication::class,
]);

Route::get('/'.$app.'/Sys.Base/applicationList', 'app\admin\controller\Sys\BaseController@application');
Route::get('/'.$app.'/Sys.Base/menu', 'app\admin\controller\Sys\BaseController@menu');
Route::get('/'.$app.'/Sys.Base/secrect', 'app\admin\controller\Sys\BaseController@secrect');
